package ptaPartTwo;
import  java.util.Scanner;
import java.math.BigDecimal;
public class fiveFloat {

	public static void main(String[] args) {
		Scanner input = new Scanner(System.in);
		String a;
		String b;
		while(input.hasNext())
		{
			a = input.nextLine();
			b = input.nextLine();
			BigDecimal c = new BigDecimal(a);
			BigDecimal d = new BigDecimal(b);
			System.out.println(c.add(d));
			System.out.println(c.multiply(d));
		}
	}

}
